package com.jk.hly.controller;

import com.jk.hly.bean.OrderForm;
import com.jk.hly.service.EchartsSerivce;
import com.sun.org.apache.bcel.internal.generic.RETURN;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("echarts")
public class EchartsController {

    @Resource
    private EchartsSerivce  echartsSerivce;


    @ResponseBody
    @RequestMapping("queryOrderForm")
    public  List<OrderForm>   queryOrderForm(){
        List<OrderForm>  list=echartsSerivce.queryOrderForm();
        return  list;
    }
}
